package com.guandi.geekbrowser.primary.service;

import com.guandi.geekbrowser.primary.entity.Task;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TaskService {

    Task findByNameAndUserId(String name, String userId);

    void save(Task task);

    List<Task> findByNameAndUserIdAndType(String name, String userId,Integer type);

    List<Task> findByUserIdAndType(String userId,Integer type);

    List<Task> findByUserIdAndTypeAndCountry(String userId,Integer type,String country);
}
